import request from '@/utils/request'

// 查询建材扩展列表
export function listGbmdext(query) {
  return request({
    url: '/goods/gbmdext/list',
    method: 'get',
    params: query
  })
}

// 查询建材扩展详细
export function getGbmdext(goodsExtId) {
  return request({
    url: '/goods/gbmdext/' + goodsExtId,
    method: 'get'
  })
}

// 新增建材扩展
export function addGbmdext(data) {
  return request({
    url: '/goods/gbmdext',
    method: 'post',
    data: data
  })
}

// 修改建材扩展
export function updateGbmdext(data) {
  return request({
    url: '/goods/gbmdext',
    method: 'put',
    data: data
  })
}

// 删除建材扩展
export function delGbmdext(goodsExtId) {
  return request({
    url: '/goods/gbmdext/' + goodsExtId,
    method: 'delete'
  })
}

// 查询建材扩展字典项
export function listGbmdextOption(query) {
  return request({
    url: '/goods/gbmdext/listoption',
    method: 'get',
    params: query
  })
}
